package com.example.community;

import java.io.FileNotFoundException;
import java.io.PrintStream;

/**
 * @author 郑涵文
 * @date 2021/11/26 10:04
 */
//System.out.println("123456");输出到文件
public class Demo {

    public static void main(String[] args) throws FileNotFoundException {
        PrintStream printStream = new PrintStream("Systemout.txt");
        System.setOut(printStream);

        System.out.println("123456");
    }
}
